#include <QApplication>
#include <QTranslator>

#include "dialog/MainWindow.h"
#include "core/global.h"

int main(int argc, char *argv[]){
    QApplication a(argc, argv);

    QTranslator translator;
    QString lang = Config.value("window/language").toString();
    if(lang != "en"){
        translator.load("lang/" + lang + ".qm");
        qApp->installTranslator(&translator);
    }

    MainWindow w;
    w.show();
    
    return a.exec();
}
